package com.flyco.modules.stm.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.flyco.common.aspect.annotation.Dict;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 门店盘点单
 * @Author: flyco
 * @Date:   2020-12-16
 * @Version: V1.0
 */
@Data
@TableName("stm_stock_check")
@ApiModel(value="stm_stock_check对象", description="门店盘点单")
public class StmStockCheck implements Serializable {
    private static final long serialVersionUID = 1L;
    
	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
	@JsonSerialize(using= ToStringSerializer.class)
	private Long id;
	/**店铺id*/
    @ApiModelProperty(value = "店铺id")
	private Long storeId;
	/**盘点单编号*/
    @ApiModelProperty(value = "盘点单编号")
	private String stockCheckSn;
	/**订单状态(0：已创建，1：已提交，3：已审核，4:已取消，5：已完成)*/
    @ApiModelProperty(value = "订单状态(0：已创建，1：已提交，3：已审核，4:已取消，5：已完成)")
	@Dict(dicCode = "stock_check_status")
	private Integer status;
	/**创建人id*/
    @ApiModelProperty(value = "创建人id")
	private Long createSalesId;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
	private String createSales;
	/**审核ID*/
    @ApiModelProperty(value = "审核ID")
	private Long confirmSalesId;
	/**审核人*/
    @ApiModelProperty(value = "审核人")
	private String confirmSales;
	/**审核通过时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "审核通过时间")
	private Date confirmTime;
	/**取消人ID*/
    @ApiModelProperty(value = "取消人ID")
	private Long cancelSalesId;
	/**取消人*/
    @ApiModelProperty(value = "取消人")
	private String cancelSales;
	/**取消时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "取消时间")
	private Date cancelTime;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private Date updateTime;

	/**店铺名称*/
	@TableField(exist = false)
	private String storeId_dictText;
}
